package com.woniuxy.caradmin.mapper;


import com.woniuxy.caradmin.entity.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PermissionMapper  {
    //通过用户id查询权限
    public List<Permission> selectPermissionsByUid(@Param("uid") Integer uid);

    //查询所有权限
    public List<Permission> selectAllPermission();
    //通过rid查询权限
    public List<Permission> selectPermissionsByRid(@Param("rid") Integer rid);

}
